package feign.okhttp.learn.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import feign.okhttp.learn.feign.fallback.FeignTimeOutServiceFallback;

@FeignClient(name = "feignTimeOutService", url = "http://127.0.0.1:8011/",fallback = FeignTimeOutServiceFallback.class)
public interface FeignTimeOutService {

    @RequestMapping(value = "/searchTimeOut", method = RequestMethod.GET)
    String searchRepo(@RequestParam("q") String queryStr);

}
